package com.zyong.design.pattern.facade.case2;

/**
 * Dvd播放器
 * @program: zyong-design-pattern
 * @ClassName: DvdPlayer
 * @author: zyong
 * @create: 2024-04-07 23:18
 */
public class DvdPlayer {
    private static DvdPlayer instance = new DvdPlayer();

    public static DvdPlayer getInstance() {
        return instance;
    }

    /**
     * 开
     */
    public void on() {
        System.out.println("DvdPlayer on");
    }

    /**
     * 关
     */
    public void off() {
        System.out.println("DvdPlayer off");
    }

    /**
     * 播放
     */
    public void play() {
        System.out.println("DvdPlayer play");
    }

    /**
     * 暂停
     */
    public void pause() {
        System.out.println("DvdPlayer pause");
    }
}
